package com.huijun.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huijun.common.utils.PageUtils;
import com.huijun.common.utils.R;
import com.huijun.product.entity.CategoryEntity;
import com.huijun.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lizhen
 * @email m18310438024@163.com
 * @date 2020-08-05 21:48:20
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> treeList();

    List<CategoryEntity> test1();

    List<CategoryEntity> test();

    void del(Long cid);

    List<CategoryEntity> getTree();

    Long[] findCatelogPath(Long categoryId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Category();

    Map<String, List<Catelog2Vo>> getCatalogJson1();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}

